import request from '@/utils/request';
import { PageResponse } from '@/interface/pages';

/**
 * 获取分页列表
 *
 * @returns Promise
 *
 * @todo 发起axios请求
 */
export const getIncomeList = (params: API.userIncome.PageListDto) => {
  return request<PageResponse<API.userIncome.EntitySchema[]>>({
    url: '/admin/income',
    method: 'get',
    params
  });
};
